<template>
<div>
	<van-nav-bar
	  title="我的收货地址"
	  left-text="返回"
	  right-text="添加新的收货地址"
	  left-arrow
	  @click-left="onClickLeft"
	/>

<van-checkbox v-model="checked"></van-checkbox>	
	<van-card
  num="2"
  price="2.00"
  desc="描述信息"  
  title="商品标题"
  thumb="https://img.yzcdn.cn/vant/t-thirt.jpg"
>

  <div slot="tags">
    <van-tag plain type="danger">标签</van-tag>
    <van-tag plain type="danger">标签</van-tag>
  </div>
  <div slot="footer">
    <van-button size="mini">+</van-button>
    <van-button size="mini">-</van-button>
  </div>
</van-card>
	<van-checkbox v-model="checked1"></van-checkbox>	
		<van-card
	  num="2"
	  price="2.00"
	  desc="描述信息"  
	  title="商品标题"
	  thumb="https://img.yzcdn.cn/vant/t-thirt.jpg"
	>
	
	  <div slot="tags">
	    <van-tag plain type="danger">标签</van-tag>
	    <van-tag plain type="danger">标签</van-tag>
	  </div>
	  <div slot="footer">
	    <van-button size="mini">+</van-button>
	    <van-button size="mini">-</van-button>
	  </div>
	</van-card>
	<van-checkbox v-model="checked2"></van-checkbox>	
		<van-card
	  num="2"
	  price="2.00"
	  desc="描述信息"  
	  title="商品标题"
	  thumb="https://img.yzcdn.cn/vant/t-thirt.jpg"
	>
	
	  <div slot="tags">
	    <van-tag plain type="danger">标签</van-tag>
	    <van-tag plain type="danger">标签</van-tag>
	  </div>
	  <div slot="footer">
	    <van-button size="mini">+</van-button>
	    <van-button size="mini">-</van-button>
	  </div>
	</van-card>
	
	
	<van-submit-bar
  :price="3050"
  button-text="提交订单"
  @submit="onSubmit"
>
  <van-checkbox v-model="checkeds">全选</van-checkbox>
  <span slot="tip">
    
  </span>
</van-submit-bar>
</div>	
</template>

<script>
	import { Toast } from 'vant';
	export default{
		name:'top',
		methods: {
			onClickLeft() {
				Toast('返回');
			},
			onSubmit(){
				if(checkeds==true){
					 checked: true,
					  checked1== true,
					 checked2== true
				}
			},
			
			},
			  data() {
    return {
      checked: true,
	    checked1: false,
		  checked2: false,
		  checkeds: false
            }
  
			}
			}
</script>

<style>
</style>
